const mongoose = require('./connect')

const orderSchema = mongoose.Schema({
    orderNo: Number,
    createdAt: {
        default: +new Date(),
        type: Date
    },
    payStatus: String,
    code: String,
    eatWay: String,
    totalPrice: String,
    userId: String,
    dishName: String
})

const orderModel = mongoose.model('order', orderSchema, 'order')

module.exports = orderModel